package xin.fsqr520.project.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 新闻实体类，对应表 news
 */
@Data
@TableName("news")
public class News {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("news_title")
    private String newsTitle;

    @TableField("news_content")
    private String newsContent;

    @TableField("news_user")
    private Long newsUser;

    @TableField(value = "news_time", fill = FieldFill.INSERT)
    private LocalDateTime newsTime;

    @TableField("news_image")
    private String newsImage;
}
